#include "chap07.h"
#include <stdio.h>
#include <string.h>

void find(char *ADS[], int NUM_ADS, int(*match)(char*)) {
	int i;
	puts("Search result:");
	puts("-------------------------------------");

	for( i = 0; i < NUM_ADS; i++) {
		if(match(ADS[i])) {
			printf("%s\n", ADS[i]);
		}
	}
	puts("-------------------------------------");
}

